package com.jxgm.spring.boot.bean;

import javax.servlet.*;
import java.io.IOException;

/**
 * @author Administrator
 * @date 2020/10/21 11:40
 * @description
 **/
public class MyFilter implements javax.servlet.Filter {
    @Override
    public void init(FilterConfig filterConfig) throws ServletException {


    }

    @Override
    public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain) throws IOException, ServletException {

        System.out.println("MyFilter....");

        filterChain.doFilter(servletRequest,servletResponse);

    }

    @Override
    public void destroy() {

    }
}
